package com.study.dynamic.pojo;


import lombok.Data;

import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
@Data
@Table(name="ti_user")
public class User implements Serializable{

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "use_id")
    private String userId;//用户名
    @Column(name = "username")
    private String username;//用户名

    @Column(name = "password")
    private String password;//密码，加密存储

    @Column(name = "phone")
    private String phone;//注册手机号


    @Column(name = "email")
    private String email;//注册手机号


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}